<?php
	include_once '../com/mss/model/User.php';
	include_once '../com/mss/service/UserService.php';
	
	class UserAction {
		
		public function addUser(User $user) {
			$user_service = new UserService();
			return $user_service->addUser($user);
		}
		
		public function selectAll() {
			$user_service = new UserService();
			return $user_service->selectAll();
		}
		
		public function view($id) {
			$user_service = new UserService();
			return $user_service->view($id);
		}
		
		public function update(User $user) {
			$user_service = new UserService();
			$user_service->update($user);
		}
	}

?>